package com.estate.service.customer;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.estate.mapper.CustomerMapper;
import com.estate.pojo.Customer;
@Service
public class CustomerServiceimpl implements CustomerService{
	@Autowired
	private CustomerMapper customerMapper;

	@Override
	public List<Customer> selectAllCustomer(String cusPhone, String cusName, String cusCardNumber) throws Exception {
		return customerMapper.selectAllCustomer(cusPhone, cusName, cusCardNumber);
	}

	@Override
	public int insertSelective(Customer record) throws Exception {
		return customerMapper.insertSelective(record);
	}
	
}
